package br.uefs.ecomp.myBook.view;

import static org.junit.Assert.*;

import java.awt.FlowLayout;
import java.io.IOException;

import javax.swing.JDialog;
import javax.swing.JPanel;

import org.junit.Before;
import org.junit.Test;

import br.uefs.ecomp.myBook.model.GeneralFile;
import br.uefs.ecomp.myBook.model.GeneralUpload;
import br.uefs.ecomp.myBook.model.MyBookVisibility;

public class FileViewTest {

	GeneralFile f1; 
	GeneralFile f2; 
	GeneralFile f3;
	GeneralFile f4; 
	MyBookVisibility vis = MyBookVisibility.FRIENDS_ONLY;
	
	private FileViewTest() throws IOException{
		GeneralFile f1, f2, f3, f4;
		
		f1 = GeneralFile.parse("mybook/files/penguins.jpg");
		f2 = GeneralFile.parse("mybook/files/texticulo.txt");
		f3 = GeneralFile.parse("mybook/files/sample.mp3");
		f4 = GeneralFile.parse("mybook/files/nullvideo.avi");
		
		MyBookVisibility vis = MyBookVisibility.FRIENDS_ONLY;
		
		FileView window = new FileView(null, new GeneralUpload(f2, "Penguins",vis));
		window.setVisible(true);
		window.revalidate();
		window.repaint();	
	}
	
	public static void main(String[] args) throws IOException{
		new FileViewTest();
	}
	

}
